import service from '@/utils/request'

// @Tags BrandCom
// @Summary 创建BrandCom
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BrandCom true "创建BrandCom"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /brandCom/createBrandCom [post]
export const createBrandCom = (data) => {
     return service({
         url: "/brandCom/createBrandCom",
         method: 'post',
         data
     })
 }


// @Tags BrandCom
// @Summary 删除BrandCom
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BrandCom true "删除BrandCom"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /brandCom/deleteBrandCom [delete]
 export const deleteBrandCom = (data) => {
     return service({
         url: "/brandCom/deleteBrandCom",
         method: 'delete',
         data
     })
 }

// @Tags BrandCom
// @Summary 删除BrandCom
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除BrandCom"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /brandCom/deleteBrandCom [delete]
 export const deleteBrandComByIds = (data) => {
     return service({
         url: "/brandCom/deleteBrandComByIds",
         method: 'delete',
         data
     })
 }

// @Tags BrandCom
// @Summary 更新BrandCom
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BrandCom true "更新BrandCom"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /brandCom/updateBrandCom [put]
 export const updateBrandCom = (data) => {
     return service({
         url: "/brandCom/updateBrandCom",
         method: 'put',
         data
     })
 }


// @Tags BrandCom
// @Summary 用id查询BrandCom
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BrandCom true "用id查询BrandCom"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /brandCom/findBrandCom [get]
 export const findBrandCom = (params) => {
     return service({
         url: "/brandCom/findBrandCom",
         method: 'get',
         params
     })
 }


// @Tags BrandCom
// @Summary 分页获取BrandCom列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取BrandCom列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /brandCom/getBrandComList [get]
 export const getBrandComList = (params) => {
     return service({
         url: "/brandCom/getBrandComList",
         method: 'get',
         params
     })
 }